import Vue from 'vue';
import { boot } from 'quasar/wrappers';

export default ({ router, store, Vue }: any) => {
  router.beforeEach((to: any, from: any, next: any) => {
    if (document) {
      document.body.parentElement?.classList.remove('nav-on');
    }
    next();
    //现在您需要在这里添加验证逻辑，比如调用一个API
    // Vue.component('slide-up-down', SlideUpDown);
  });
};
